<?
namespace App;
class ApiException extends \Exception{
    public $httpCode = 200;
    //错误具体信息
    public $message = '参数错误';
    public $status = 40000;

    public function __construct($message, $status = 40000, $httpCode = 200)
    {
        parent::__construct();
        $this->message = $message;
        $this->status = $status;
        $this->httpCode = $httpCode;
        //return json_encode(['code'=>$this->status,'msg'=>$this->message,'data'=>[]],JSON_UNESCAPED_UNICODE);
    }
}